#include "common.h"
#include <stdlib.h>

#ifndef __TLB_H__
#define __TLB_H__

#define TLB_SIZE 64

typedef struct {
	uint32_t tag;
	bool valid;
	uint32_t page;
} TLB;

TLB tlb[TLB_SIZE];

uint32_t TLB_read(uint32_t tg);
void TLB_init();
void TLB_write(uint32_t tg, uint32_t page);

#endif